﻿using System.Collections.Generic;
using NHibernate;
using NHibernate.Criterion;

using ScriptManager.Data.Persistence.Interface;

namespace ScriptManager.Data.Persistence.Repository
{
    /// <summary>
    /// Since nearly all of the domain objects you create will have a type of int ID, this 
    /// most freqently used base GenericDao leverages this assumption.  If you want a persistent 
    /// object with a type other than int, such as string, then use 
    /// <see cref="GenericDaoWithTypedId{T, IdT}" />.
    /// </summary>
    public class Repository<T> : RepositoryWithTypedId<T, int>, IRepository<T>
    {
        public Repository(ISessionFactory sessionFactory)
            : base(sessionFactory)
        {
        }
    }
}

